<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        // 新建一个数组，里面存放10个整数 1~10
        let arr = new Array();
        for (let i = 1; i < 11; i++) {
            // console.log(i);
            arr[i-1] = i;
        }
        
        console.log(arr);
    </script>
</head>

<body>

</body>

</html>